﻿using System;

namespace enyo
{
    /// <summary>
    /// A control that presents a range of selection options in the form of a horizontal slider with a control knob that can be tapped and dragged to the desired location.
    /// </summary>
    public class Slider : ProgressBar
    {
        /// <summary>
        /// Controls whether position may be set by tapping an arbitrary position on the bar.
        /// If false, position may only be set by dragging the knob.
        /// </summary>
        public bool TapPosition { get; set; }

        public EnyoEvent<Control, int> onChange;
        public EnyoEvent<Control, int> onChanging;
    }
}
